package com.atguigu.yygh.cmn.demo;

import com.alibaba.excel.EasyExcel;

/**
 * @Author luoyin
 * @Date 19:32 2022/9/23
 **/
public class ReadExcel {
    public static void main(String[] args) {
        String fileName = "C:\\Users\\luoyin\\Desktop\\学生.xlsx";
        ExcelListener listener = new ExcelListener();
        EasyExcel.read(fileName,Student.class,listener).sheet(0).doRead();
        System.out.println(listener.list);
    }
}
